package com.example.aiodemo.test;

import java.util.*;
public class Main4 {
    public static void main(String[] args){
        ArrayList<String> list=new ArrayList<>();
        Scanner input=new Scanner(System.in);
        int num=input.nextInt();
        String numStr=removeZero(num+"");
        for(int i=0;i<numStr.length();i++){
            int count=0;
            char c=numStr.charAt(i);
            if(!list.contains(""+c)){
                list.add(""+c);
            }
        }
        for(String s:list){
            System.out.print(s);
        }
    }

    public static String removeZero(String numStr){
        StringBuilder s=new StringBuilder();
        for(int i=numStr.length()-1;i>=0;i--){
            s.append(numStr.charAt(i));
        }
        return Integer.parseInt(s.toString())+"";
    }
}
